<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
   <title>佐心，教家长做父母</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
	<c:set var="ctx" value="${pageContext.request.contextPath}" />
    <link rel="stylesheet" href="assets/css/amazeui.min.css?v=2.9">
    <link rel="stylesheet" href="assets/css/style.css?v=2.3">
    <link rel="stylesheet" href="assets/css/index.css?v=2.3">
    <script>
    var signUrl2=location.href.split('#')[0];
	if(signUrl2.indexOf("isappinstalled")>0){
		signUrl2=signUrl2.split('?')[0];
		location.href=signUrl2;
	}
	var linkJpg="http://m.zuoxinjiazhang.com/js/zuoxin.jpg";
    </script>
    <script>
    	    /** 
     * 返回前一页（或关闭本页面） 
     * <li>如果没有前一页历史，则直接关闭当前页面</li> 
     */  
    function goBack(){  
        if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)){ // IE  
            if(history.length > 0){  
                window.history.go( -1 );  
            }else{  
                location.href="${ctx}/index.jsp";
            }  
        }else{ //非IE浏览器  
            if (navigator.userAgent.indexOf('Firefox') >= 0 ||  
                navigator.userAgent.indexOf('Opera') >= 0 ||  
                navigator.userAgent.indexOf('Safari') >= 0 ||  
                navigator.userAgent.indexOf('Chrome') >= 0 ||  
                navigator.userAgent.indexOf('WebKit') >= 0){  
      
                if(window.history.length > 1){  
                    window.history.go( -1 );  
                }else{  
                    location.href="${ctx}/index.jsp";
                }  
            }else{ //未知的浏览器  
                window.history.go( -1 );  
            }  
        }  
    }  
    </script>
</head>
<body class="">
<header data-am-widget="header" class="am-header am-header-default am-header-fixed bg-4">

    <h1 class="am-header-title">
        我 的
    </h1>

    <div class="am-header-right am-header-nav ">
        <a  class="am-text-right">
            <span id="btn_qiandao"></span>
        </a>
    </div>
</header>
<section class="" id="amz-main" data-tag="css-nav">
    <div class="my-top am-padding-top-sm font-color-white">
        <div class="am-text-center"><img id="headUrl" src="" class="am-circle"></div>
        <div class="am-margin-top-xs am-text-center zhanwei" id="nickName"></div>
        <div class=" am-text-center am-text-sm margin-top-5" id="telphone"></div>
    </div>

    <div class="am-padding-left-sm font-color-13 my-menu-list ">
        <div class="box am-padding-top-xs am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-1"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='getMessage?sendType=2'">
                <span class="prelative">消息通知<i style="display:none" class="icon-hongdian"></i></span>
            </div>
        </div>
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-2"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='myOrder.jsp'">
                我的订单
            </div>
        </div>
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-3"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='myShouChan.jsp'">
                我的收藏
            </div>
        </div>
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-4"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='myAsk.jsp'">
                我的提问
            </div>
        </div>
        <div class="box  am-padding-bottom-xs "  >
            <div class="width-35px ">
                <i class="my-icon my-icon-5"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='pinggu/myReport.jsp'">
                我的报告
            </div>
        </div>
        <div class="box  am-padding-bottom-xs ">
            <div class="width-35px ">
                <i class="my-icon my-icon-6"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="showPop()">
                分享我们
            </div>
        </div>
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-7"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='tucao.jsp'">
                吐槽我们
            </div>
        </div>
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-8"></i>
            </div>
            <div class="box-1    padding-bottom-7" onclick="window.location.href='9.jsp'">
                关于我们
            </div>
        </div>
    </div>


</section>
<footer data-am-widget="navbar" class="am-navbar am-cf am-navbar-default " id="">
    <ul class="am-navbar-nav am-cf am-avg-sm-4">
        <li>
            <a href="index.jsp" class="">
                <img src="assets/images/icon/index/icon_home.png"
                     alt="首页"/>
                <span class="am-navbar-label">首页</span>
            </a>
        </li>
        <li>
            <a href="counseKu.jsp" class="">
                <img src="assets/images/icon/index/icon_zhuanjia.png"
                     alt="专家库"/>
                <span class="am-navbar-label">专家库</span>
            </a>
        </li>

        <li>
            <a href="peixun.jsp" class="">
                <img src="assets/images/icon/index/icon_peixun.png"
                     alt="培训"/>
                <span class="am-navbar-label">培训</span>
            </a>
        </li>
        <li>
            <a href="myzones.jsp" class="selected">
                <img src="assets/images/icon/index/icon_user_on.png"
                     alt="我的"/>
                <span class="am-navbar-label">我的</span>
            </a>
        </li>
    </ul>
</footer>

<div class="am-modal am-modal-alert"  id="my-alert">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">提示</div>
        <div class="am-modal-bd">
            签到成功！
        </div>
        <div class="am-modal-footer">
            <span class="am-modal-btn">确定</span>
        </div>
    </div>
</div>

<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/common.js"></script>
<script>
    $(function(){
    	
    	var myNewsData=$.ajax({url:"myNewsData",async:false});
        var wxUser=JSON.parse(myNewsData.responseText);
        if(wxUser.resultCode=="0"){
        	$("#headUrl").attr("src",wxUser.wxUser.headimgurl);
        	$("#nickName").text(wxUser.wxUser.nickname);
        	if(wxUser.wxUser.telephone!=null){
        		$("#telphone").text(wxUser.wxUser.telephone);
        	}
        }
        
        var html1=$.ajax({url:"hasMessage?type=2",async:false});
        var html11=JSON.parse(html1.responseText);
        if(html11.resultCode=="0"){
        	$(".icon-hongdian").show();
        }
    });

</script>
<div style="display:none">
<h3 id="menu-basic" style="display:none">基础接口</h3>    
<span class="desc"  style="display:none">判断当前客户端是否支持指定JS接口</span>    
<button class="btn btn_primary" id="checkJsApi"  style="display:none">checkJsApi</button>    
<h3 id="menu-share"  style="display:none">分享接口</h3>    
<span class="desc" >获取“分享到朋友圈”按钮点击状态及自定义分享内容接口</span>    
<button class="btn btn_primary" id="onMenuShareTimeline2" >onMenuShareTimeline</button>    
<span class="desc"  style="display:none">获取“分享给朋友”按钮点击状态及自定义分享内容接口</span>    
<button class="btn btn_primary" id="onMenuShareAppMessage"  style="display:none">onMenuShareAppMessage</button>    
<span class="desc"  style="display:none">获取“分享到QQ”按钮点击状态及自定义分享内容接口</span>    
<button class="btn btn_primary" id="onMenuShareQQ"  style="display:none">onMenuShareQQ</button>    
<span class="desc"  style="display:none">获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口</span>    
<button class="btn btn_primary" id="onMenuShareWeibo"  style="display:none">onMenuShareWeibo</button>       
<h3 id="menu-voice">音频接口</h3>    
<span class="desc">开始录音接口</span>    
<button class="btn btn_primary" id="startRecord2">startRecord</button>    
<span class="desc">停止录音接口</span>    
<button class="btn btn_primary" id="stopRecord">stopRecord</button>    
<span class="desc">播放语音接口</span>    
<button class="btn btn_primary" id="playVoice">playVoice</button>    
<span class="desc">暂停播放接口</span>    
<button class="btn btn_primary" id="pauseVoice">pauseVoice</button>    
<span class="desc">停止播放接口</span>    
<button class="btn btn_primary" id="stopVoice">stopVoice</button>    
<span class="desc">上传语音接口</span>    
<button class="btn btn_primary" id="uploadVoice">uploadVoice</button>    
<span class="desc">下载语音接口</span>    
<button class="btn btn_primary" id="downloadVoice">downloadVoice</button>    
<h3 id="menu-smart">智能接口</h3>    
<span class="desc">识别音频并返回识别结果接口</span>    
<button class="btn btn_primary" id="translateVoice">translateVoice</button>    
</div>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>   
<script>    
var nonceStr;
var timestamp;
var signature;
var appId;
htmlobj=$.ajax({url:"getSign?url="+location.href.split('#')[0],async:false});
var json=JSON.parse(htmlobj.responseText);
signature=json.signature; 
nonceStr=json.nonceStr; 
timestamp=json.timestamp; 
appId=json.appId; 
wx.config({    
debug: false,    
appId: appId,    
timestamp: timestamp,    
nonceStr: nonceStr,    
signature: signature,    
jsApiList: [        
'checkJsApi',    
'onMenuShareTimeline',    
'onMenuShareAppMessage',    
'onMenuShareQQ',    
'onMenuShareWeibo',    
'hideMenuItems',    
'showMenuItems',    
'hideAllNonBaseMenuItem',    
'showAllNonBaseMenuItem',    
'translateVoice',    
'startRecord',    
'stopRecord',    
'onRecordEnd',    
'playVoice',    
'pauseVoice',    
'stopVoice',    
'uploadVoice',    
'downloadVoice',    
'chooseImage',    
'previewImage',    
'uploadImage',    
'downloadImage',    
'getNetworkType',    
'openLocation',    
'getLocation',    
'hideOptionMenu',    
'showOptionMenu',    
'closeWindow',    
'scanQRCode',    
'chooseWXPay',    
'openProductSpecificView',    
'addCard',    
'chooseCard',    
'openCard'
]    
});    
</script>  
<script type="text/javascript">
wx.ready(function () {
// 1 判断当前版本是否支持指定 JS 接口，支持批量判断
document.querySelector('#checkJsApi').onclick = function () {
  wx.checkJsApi({
    jsApiList: [
      'getNetworkType',
      'previewImage'
    ],
    success: function (res) {
    }
  });
};
// 2. 分享接口
// 2.1 监听“分享给朋友”，按钮点击、自定义分享内容及分享结果接口
  wx.onMenuShareAppMessage({
	  title: '佐心，教家长做父母',
	  desc: '佐心家长，我的会员个人页',
	  link: window.location.href,
	  imgUrl: "http://xinli.v-ma.net/js/zuoxin.jpg",
    trigger: function (res) {
    },
    success: function (res) {
      alert('已分享');
    },
    cancel: function (res) {
      alert('已取消');
    },
    fail: function (res) {
    }
  });
// 2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
  wx.onMenuShareTimeline({
	  title: '佐心，教家长做智慧父母',
	  link: window.location.href,
	  imgUrl: "http://xinli.v-ma.net/js/zuoxin.jpg",
    trigger: function (res) {
    },
    success: function (res) {
      alert('已分享');
    },
    cancel: function (res) {
      alert('已取消');
    },
    fail: function (res) {
    }
  });
var shareData = {
  title: '佐心，教家长做智慧父母',
  desc: '佐心家长，我的会员个人主页',
  link: window.location.href,
  imgUrl: 'http://xinli.v-ma.net/assets/images/zuoxin.jpg',
};
wx.onMenuShareAppMessage(shareData);
wx.onMenuShareTimeline(shareData);
});
wx.error(function (res) {
});

</script>
</body>
</html>